package ${package.Entity};

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softWang.common.base.TenantBasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * ${table.comment!}
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@TableName(value = "${table.name!}", autoResultMap = true)
@KeySequence("${table.name!}_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class ${entity}  extends TenantBasePO {
<#-------------  BEGIN 字段循环遍历  ---------->
<#list table.fields![] as field>

    @ApiModelProperty(value = "${field.comment!},长度${(field.metaInfo.length)!}")
    <#if field.keyFlag>
    @TableId
    </#if>
    private ${field.propertyType} ${field.propertyName};
</#list>
<#------------  END 字段循环遍历  ---------->

}
